import request from '../utils/request'
export default {
    //分享指定文件
    shareOneFile(data) {
        return request({
            method: 'post',
            url: '/share/setting',
            data
        })
    },
    //获取分享列表
    getShareList(){
        return request({
            method: 'get',
            url:'/share/getlist',
        })
    },
    //获取分享的文件的信息
    getShareLink(params){
        return request({
            method: 'get',
            url:'/share/link',
            params
        })
    },
    //保存分享文件
    saveShareFile(data){
        return request({
            method:'post',
            url:'/share/save',
            data
        })
    }

}